public class Button {
  int xcor;
  int ycor;
  int len;
  int wid;
  String menuItem;
  Character who;
  InvSlot<Armor> armor;
  boolean chosen = false;
  boolean ignore = false;

  public Button() {
  }

  public Button(int x, int y, int l, int w) {
    xcor = x;
    ycor = y;
    len = l;
    wid = w;
  }

  public Button(int x, int y, int l, int w, String m) {
    xcor = x;
    ycor = y;
    len = l;
    wid = w;
    menuItem = m;
  }
  public Button(int x, int y, int l, int w, Character c) {
    xcor = x;
    ycor = y;
    len = l;
    wid = w;
    who = c;
  }

  public Button(int x, int y, int l, int w, InvSlot i) {
    xcor = x;
    ycor = y;
    len = l;
    wid = w;
    armor = i;
  }

  public boolean isClicked(int x, int y) {
    return (x >= xcor && x <= xcor+len && y >= ycor && y <= ycor+wid);
  }
}

